<template>
    <div class="food"> 
        <Post v-for="(post,index) in list" :key="index" :post="post" :isGroup='true' v-lazy="post"/>
    </div>
</template>

<script>
import Post from '../common/post/Post.vue'
import axios from 'axios'
export default {
    name:'Food',
    components:{
        Post
    },
    data() {
        return {
            // list:null,
            list:[
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 147,
                    content: "小龙虾，烤肉，刺身，烤鸭，河科院里怎么什么也没有啊！！！",
                    img: "https://img0.baidu.com/it/u=3669523223,1462704407&fm=253&fmt=auto&app=138&f=JPEG?w=450&h=450",
                    imgs: `https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.daimg.com%2Fuploads%2Fallimg%2F200516%2F1-200516144643.jpg&refer=http%3A%2F%2Fimg.daimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=54ccb3dc7e4706b3edd5a15500bb659a;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fvsd-picture.cdn.bcebos.com%2Fc8abc11e61896e9235545c630ef5c4acf42e82ec.jpg&refer=http%3A%2F%2Fvsd-picture.cdn.bcebos.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482246&t=13098825ccc9d904811953eb9a52f2bb;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.ebuy16.com%2Fpics%2FO1CN01Aeb6Pa1nFz5orXWIJ%2F0-item_pic.jpg&refer=http%3A%2F%2Fwww.ebuy16.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482246&t=1220b30a036478bf1107a4e7548028e1;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg1.doubanio.com%2Fview%2Frichtext%2Flarge%2Fpublic%2Fp217723039.jpg&refer=http%3A%2F%2Fimg1.doubanio.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=9f1d2dfa736517666aa2a1361a35d54c;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic18.nipic.com%2F20120107%2F682614_004135977145_2.jpg&refer=http%3A%2F%2Fpic18.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=7e59e1b18cfff2db9950012b01cd5fea;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Flmg.jj20.com%2Fup%2Fallimg%2F1113%2F062320091454%2F200623091454-2-1200.jpg&refer=http%3A%2F%2Flmg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=dacc1f6e2b1376eda9f866dce3e5ae67;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2F53%2Fa3%2F13%2F53a3136e4e1c9d3e161e3fd2b2fb0232.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=c02bb11722397688fb52c8564018f91e;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F018e395ddb4e6ea8012053c08f5cd0.jpg%401280w_1l_2o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=698b5ef9d40b82beb0ce7d61c0e79535;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic17.nipic.com%2F20111028%2F7806959_103852270101_2.jpg&refer=http%3A%2F%2Fpic17.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=968e550c77135bc2af8ced42a8cee663
                    `,
                    nickname: "小吃货",
                    praise: 294,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
                {
                    bodyId: 34,
                    classname: "交流圈子",
                    collection: 123,
                    content: "大壮超市外卖，数量有限，先来先得",
                    img: "https://img0.baidu.com/it/u=614818989,1556886574&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=316",
                    imgs: `https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1115%2F100421201K6%2F211004201K6-1-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=c1cd0b536235bf0ea00e7e7d007989db;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01b3b659f2d6aaa801202b0c5b949d.JPG%403000w_1l_0o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=5b339da75d17f7b000b410434b4d5d7b;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic157.nipic.com%2Ffile%2F20180303%2F13125463_165246271000_2.jpg&refer=http%3A%2F%2Fpic157.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=9d830face1ace9780755021d63ebfdad;
                    https://img1.baidu.com/it/u=4055576460,2562009416&fm=253&fmt=auto&app=138&f=JPEG?w=499&h=333;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fvsd-picture.cdn.bcebos.com%2F1febd4e141270390d2d534ca4f99fec3ee119af2.jpg&refer=http%3A%2F%2Fvsd-picture.cdn.bcebos.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=cfca2065f22ae5983ec2464ec97506ec;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fdingyue.ws.126.net%2FFjv1GvokmtS5zbzO1wb6B6xQ2GxpnDbcKSKvXPHEQr6Z31538688116307compressflag.jpeg&refer=http%3A%2F%2Fdingyue.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=21239f380134987d3dfd7ee1176389e0;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F013a0a5a5c5823a8012113c78390b0.jpg%401280w_1l_2o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=eb733133e9b5a95d3fa16d71ad5eaa4c;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F012c1a5e01c99da80121651821c838.jpg%403000w_1l_0o_100sh.jpg&refer=http%3A%2F%2Fimg.zcool.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=a8fae17707d9b6560fe137a21a1d7991;
                    https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.jj20.com%2Fup%2Fallimg%2F811%2F032415103035%2F150324103035-5.jpg&refer=http%3A%2F%2Fpic.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1651482090&t=377d8ce734d21639b2b5e2ee892d04cb
                    `,
                    nickname: "大壮大壮",
                    praise: 2264,
                    state: 0,
                    time: "2022-02-28 19:45:31",
                    userId: 11,
                },
            ]
        }
    },
    props:['post'],
    // mounted() {
    //     axios({
    //         url:'/body/findSuch',
    //         method:'get',
    //         params:{
    //             classsname:'美食',
    //             // userId:1//默认的用户id
    //         }
    //     }).then(data=>{
    //         this.list = data.data.data
    //         console.log(data)
    //     }).catch(err=>{
    //         console.log(err)
    //     })
    // },
}
</script>

<style>
.food{
    background-color: #fafafa;
}
</style>